package admin

import (
	"context"
	"server/internal/service"

	"server/api/admin/system"
)

func (c *ControllerSystem) AuthorityRoleBindPermission(ctx context.Context, req *system.AuthorityRoleBindPermissionReq) (res *system.AuthorityRoleBindPermissionRes, err error) {
	res = new(system.AuthorityRoleBindPermissionRes)
	err = service.SystemAuthority().RoleBindPermission(ctx, req.RoleId, req.PermissionIds)
	return
}
